<!DOCTYPE html>
<meta name="color-scheme" content="light dark">

<input type="password" id="passwd">

<script>
    // This verifies the reveal-password button appears after a character is entered.
    document.getElementById("passwd").focus();
    eventSender.keyDown('a');
</script>